layui.use(['form', 'table', 'layer', 'jquery'], function () {
    var table = layui.table,
        layer = layui.layer,
        $ = layui.jquery,
        form = layui.form;


    var tabIns = table.render({
        elem: '#permissionList', //绑定table id
        height: 'full-125',
        url: ctx + '/permission/list',
        page: true,
        cellMinWidth: 95, // 单元格最小宽度
        cols: [[ // 表头
            {type: 'checkbox'},
            {type: "numbers", title: '编号'},
            {field: "permission", title: "权限名"},
            {field: "describee", title: "描述"},
            {field: "updateTime", title: "更新时间"},
            {title: "操作", templet: '#currentTableBar', fixed: 'right'}
        ]]
    })
    // 监听行工具栏 打开授权页面
    table.on('tool(permissionFilter)', function (data) {
        function openGrantDialog(id) {

        }

        if (data.event == 'grant') {
        //    openGrantDialog(data.data.id);
        }
    })

})